/**
功能:全选/反选
name-页面中checkbox的名字
check-多选控制checkbox的id
*/
function selectAll(name,check) {
	var obj = document.getElementsByName(name);
	if (document.getElementById(check).checked) {
		for (var i = 0; i < obj.length; i++) {
			obj[i].checked = true;
		}
	} else {
		for (var i = 0; i < obj.length; i++) {
			obj[i].checked = false;
		}
	}
};